package cn.fuck;

import java.sql.SQLException;

public class ThrowsAgain {
    public static void theow() throws Throwable {
        try {

        } catch (Exception e) {
            Throwable t = new SQLException();
            t.initCause(e);
            throw t;
        }
    }

    public static void main(String[] args) {
        try {
            theow();
        } catch (Throwable throwable) {
            // 使用这个语句得到原始异常
            throwable.getCause();

            throwable.printStackTrace();
        }
    }
}
